Skip to content

Fix #15229 (CI: we are running out of cache) - #9041

Merged
danmar merged 1 commit into
cppcheck-opensource:mainfrom
cppchecksolutions:fix-15229
Nov 17, 2026
Merged

danmar merged 1 commit into
cppcheck-opensource:mainfrom
cppchecksolutions:fix-15229

Conversation

@danmar

@danmar danmar commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

The repository Actions cache is above its 10 GB limit (~10.9 GB). Most of it is ccache entries written by pull requests (~330 MB per docker image, ~150 MB per cmake configuration, several per push). Caches evict each other, so many jobs get 0% ccache hits and the scriptcheck binary cache was evicted before the test jobs could restore it.

With this change hendrikmuhs/ccache-action only saves the cache when the run is not a pull request (push to main/release branches, scheduled runs). Pull requests still restore the cache of the base branch, so they keep getting cache hits without writing their own entries.

🤖 Generated with Claude Code

Only save the ccache cache for push/scheduled runs. Pull requests restore
the cache of their base branch but do not write their own entries, which
filled the 10 GB repository cache and caused caches to be evicted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@danmar
danmar merged commit fdc1942 into cppcheck-opensource:main Nov 17, 2026
71 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant